﻿/*CREATE TRIGGER [dbo].[JuntasImportes_DeletionTrigger] 
    ON [JuntasImportes] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[JuntasImportes_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[ImporteGuid] = [JuntasImportes_Tombstone].[ImporteGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[JuntasImportes_Tombstone] 
    ([ImporteGuid], DeletionDate)
    SELECT [ImporteGuid], GETUTCDATE()
    FROM deleted 
END*/